
<?php

if (APP_SHOP_HASSEXE=="no"){
    ?>
<script>
    $("#el_gender").parent().parent("tr").hide();
</script>
<?php

}




if (APP_SHOP_GENBARCODE=="yes"){

    ?>
<script>
    $("#ButterflyPortal_data_BARCODE").attr('readonly', true);
</script>
<?php

}



if (APP_SHOP_GENREFERENCE=="yes"){

    $pname=explode(" ",getPortalName());
    $tmp="";
    foreach ($pname as $element) {
        $tmp.=substr($element,0,1);
    }
    ?>
<script>

    $("#ButterflyPortal_data_REFERENCE").val('<?php echo $tmp.date('ymdhms'); ?>');
    $("#x_lib_EN").val('<?php echo $tmp.date('ymdhms'); ?>');
    $("#ButterflyPortal_data_OUTDATE").val(  $("#ButterflyPortal_data_ADDDATE").val());
    $("#ButterflyPortal_data_REFERENCE").attr('readonly', true);
</script>
<?php

}
?>